﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TpWeb.Domain.BizObj;
using TpWeb.Domain.Repositories;

namespace TpWeb.Dal.Repositories
{
    internal class CountryRepository : ICountryRepository
    {
        private DbContext _context;
        private readonly Repository<Country, string> _repository;


        public CountryRepository(DbContext context)
        {
            _context = context;
            _repository = new Repository<Country, string>(_context, null);
        }

        public IQueryable<Country> All
        {
            get { return _repository.All; }
        }
    }
}
